package com.cashmama.market.api.application.controller.user.request;

import com.cashmama.market.api.infras.utils.ParamsValidateUtil;
import com.cashmama.market.api.infras.utils.StringUtils;
import com.fqgj.common.api.ParamsObject;

/**
 * @program: market-api
 * @description
 * @author: frank
 * @create: 2020-03-17 22:34
 **/
public class UserLoginTypeRequest extends ParamsObject {

    private String mobile;

    public String getMobile() {
        return mobile;
    }

    public UserLoginTypeRequest setMobile(String mobile) {
        this.mobile = mobile;
        return this;
    }

    @Override
    public void validate() {
        ParamsValidateUtil.checkParams(StringUtils.isEmpty(mobile), "mobile can not be empty");
    }
}
